x = int(input())
n = len(str(x))
if n == 4:
    x = 1234
    n4 = x % 10
    x2 = x // 10
    n3 = x2 % 10
    x3 + x2 // 10
    print("Да")
else:
    print("Нет")
s = str(x)
